import { cloud, default as request } from "@/framework/utils/request";


/**
 * @description: 个人中心优惠卷列表（状泰-1 无门槛优惠券0 未使用1 已过期2 已使用3 已被分享领取） /tMcpCoupon/getCouponByUser
 * @param data
 */
export function QueryCouponStatusList(data) {
  return request({
    url: `${cloud.mall}/tMcpCoupon/getCouponByUser`,
    method: "get",
    params: data,
  });
}

/**
 * @description: ReceiveCoupon 领取优惠卷中心列表
 * @param data
 */
export function ReceiveCouponList(data) {
  return request({
    url: `${cloud.mall}/tMcpCoupon/receiveCouponList`,
    method: "get",
    params: data,
  });
}

/**
 * @description: 优惠券领取 /tMcpCoupon/receiveCoupon
 * @data
 */
export function ReceiveCouponHandle(data) {
  return request({
    url: `${cloud.mall}/tMcpCoupon/receiveCoupon`,
    method: "post",
    data,
  });
}